<div class="card-head"><h4>{{problemSetName}}</h4></div>
<div class="card-block bg-white">
  <a *ngIf="currentUser!=null&&currentUser.role=='teacher'" class="btn btn-info"
     href="http://localhost:12002/services/auth/expertZip/123">导出得分代码</a>
  <div class="box" style="margin-top: 1.25rem">
    <div class="box-body no-padding">
      <table class="table table-striped">
        <tr>
          <th>排名</th>
          <th>用户</th>
          <th>分数</th>
          <th>通过数</th>
        </tr>

        <!--<tr *ngIf="myData!=null">
          <td style="font-weight: bold">{{myData.rowNo}}</td>
          <td><span class="badge badge-info">我</span><span>{{myData.creator}}</span></td>
          <td>{{myData.score}}</td>
          <td>{{myData.acceptNum}}</td>
        </tr>-->
        <tr *ngFor="let d of data; let i = index;">
          <td>{{d.rowNo}}</td>



          <td *ngIf="currentUser!=null&&d.creator==currentUser.code"><span class="badge badge-info">我</span><span>{{d.creator}}</span></td>
          <td *ngIf="!(currentUser!=null&&d.creator==currentUser.code)">{{d.creator}}</td>
          <td>{{d.score}}</td>
          <td>{{d.acceptNum}}</td>
        </tr>
      </table>
    </div>
    <div>
      <p-paginator [rows]="50" [totalRecords]="total" (onPageChange)="paginate($event)"></p-paginator>
    </div>
  </div>

</div>




